<?php

class LolModel extends Model{

	protected $_validate = array(     
		array('account','','帐号名称已经存在！',0,'unique',1),  
	);

	/**
	 * 获取账号列表
	 * @return [type] [description]
	 */
	public function accountList(){
		
		$list = M('lol')
			->order('create_time ASE')
			->select();

		return $list;

	}


}